We want to get rid of commandline option handling in GTK+.
This is a step in that direction.
"optionally passing one or more URIs as arguments.");
g_option_context_set_summary (context, summary);
g_option_context_add_main_entries (context, entries, GETTEXT_PACKAGE);
- g_option_context_add_group (context, gtk_get_option_group (FALSE));
-
g_option_context_parse (context, &argc, &argv, &error);
g_option_context_free (context);
gchar ***arguments,
gint *exit_status)
{
- g_application_add_option_group (application, gtk_get_option_group (FALSE));
-
return G_APPLICATION_CLASS (gtk_application_parent_class)->local_command_line (application, arguments, exit_status);
}
return test_touchscreen > 0 || (gtk_get_debug_flags () & GTK_DEBUG_TOUCHSCREEN) != 0;
}
-/**
- * gtk_get_option_group:
- * @open_default_display: whether to open the default display
- * when parsing the commandline arguments
- *
- * Returns a #GOptionGroup for the commandline arguments recognized
- * by GTK+ and GDK.
- *
- * You should add this group to your #GOptionContext
- * with g_option_context_add_group(), if you are using
- * g_option_context_parse() to parse your commandline arguments.
- *
- * Returns: (transfer full): a #GOptionGroup for the commandline
- * arguments recognized by GTK+
- *
- * Since: 2.6
- */
-GOptionGroup *
+static GOptionGroup *
gtk_get_option_group (gboolean open_default_display)
{
GOptionGroup *group;
gboolean gtk_init_check (int *argc,
char ***argv);
-GDK_AVAILABLE_IN_ALL
-GOptionGroup *gtk_get_option_group (gboolean open_default_display);
-
#ifdef G_OS_WIN32
/* Variants that are used to check for correct struct packing